home *** CD-ROM | disk | FTP | other *** search
- Path: nova.np.ac.sg!news
- From: nbk@titan.np.ac.sg (Ng Beng Kiat)
- Newsgroups: comp.lang.c++
- Subject: Re: How get application directory in Win95?
- Date: 8 Apr 1996 18:30:53 +0800
- Organization: Ngee Ann Polytechnic, Singapore
- Message-ID: <4kapsu$2t3@titan.np.ac.sg>
- References: <3168cca8.89931566@news.demon.co.uk>
- NNTP-Posting-Host: titan.np.ac.sg
- NNTP-Posting-User: nbk
-
- Martin McKean <martin@mckean.demon.co.uk> wrote:
- >When an Win95 application is running, how can I find the directory
- >path it is stored in so that data files can be written to it?
- >
- GetModuleFileName() returns full path name of executable. Its directory path
- can be easily extracted.
-
- --
- | Ng BengKiat |
- | (ALPHA Centre/NgeeAnn Poly/Singapore) |
-